package cn.lg.soar.common.enums;

import cn.lg.soar.common.annotations.DictDefine;
import cn.lg.soar.common.data.dict.IDict;
import com.baomidou.mybatisplus.annotation.IEnum;

/**
 * @author luguoxiang
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@DictDefine(name = "操作")
public enum OperateTypeEnum implements IDict<Integer>, IEnum<Integer> {

    CREATE("创建", 1)
    ,UPDATE("修改", 2)
    ,REMOVE("删除", 3)
    ,IMPORT("导入", 4)
    ,EXPORT("导出", 5)
    ,LOGIN("登录", 6)
    ,QUERY("查询", 7)
    ,DETAIL("详情", 8)
    ,OTHER("其他", 9)
    ;
    OperateTypeEnum(String label, int value){
        this.label = label;
        this.value = value;
    }

    private final String label;
    private final int value;
    @Override
    public Integer getValue() {
        return this.value;
    }
    @Override
    public String getLabel() {
        return this.label;
    }

}
